//
//  YDHomeTopView.h
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/8.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YDHomeTopView;
//点击视图类型
typedef NS_ENUM(NSUInteger, SYHomeTopViewStyle) {
    SYHomeTopViewStyleCarsoul,//0   deafault
    SYHomeTopViewStyleMarket,//1
    SYHomeTopViewStyleRotation,//2
};

@protocol SYHomeTopViewDelegate <NSObject>


/**
  点击了topView上面的界面类型及索引

 @param topView topView
 @param viewStyle view类型
 @param index 点击索引
 */
-(void)homeTopView:(YDHomeTopView *)topView didSelectedViewType:(SYHomeTopViewStyle)viewStyle viewIndex:(NSInteger)index;


@end

@interface YDHomeTopView : UIView


@property (nonatomic , strong) NSArray *carsoulImageUrlArray;
@property (nonatomic , strong) NSArray *noticeModelArray;
@property (nonatomic , strong) NSArray *quotationModelArray;

+ (instancetype)homeTopViewWithCarsoulImageUrlArray:(NSArray *)carsoulImageUrlArray NoticeModelArray:(NSArray *)noticeModelArray QuotationModelArray:(NSArray *)quotationModelArray;



@property (nonatomic , weak)id<SYHomeTopViewDelegate>delegate;


@end
